﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false" CodeFile="Home.aspx.cs"
    Inherits="Admin_Home" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Admin</title>
    <script src='/Scripts/jq/jquery-1.7.2.js' type="text/javascript"></script>
    <script src="/Scripts/Controls/Sparrow_menu.js" type="text/javascript"></script>
    <script src="/Scripts/Controls/Sparrow_layout.js" type="text/javascript"></script>
    <script src="/Scripts/Controls/Sparrow_tabcontrol.js" type="text/javascript"></script>
    <script src="/Scripts/Controls/Sparrow_dialog.js" type="text/javascript"></script>
    <script type="text/javascript">
        var menu = null;
        var layout = null;
        var dialog = null;
        var tab = null;

        //        $();

        $(function () {
            layout = $("#layout1").SparrowLayout({ leftWidth: 150,bottomHeight:4 });

            dialog = $("body").Sparrow_dialog({ canDrag: true, showMask: true });
            tab = $("#framecenter").SparrowTabControl();
            menu = $("#Menu").SparrowMenu({
                LinkHoverClass: "l-link-over",
                LinkSelectedClass: "l-link-sel",
                ItemClick: function (item) {
                    var urls = $(item).attr("url");
                    if (tab) {
                        var tabid = $(item).attr("tabid");
                        if (!tabid) {
                            tabid = new Date().getTime();
                            $(item).attr("tabid", tabid);
                        }
                        tab.addTabItem({ tabid: tabid, text: item.Text, url: urls });
                    }
                }
            });
            $("#homeloading").hide();
        });


        function show(isShow) {
            menu.IsExpland(isShow);
        }

        function CloseDialog(isRefresh, param) {
            if (isRefresh) {
                Refresh(param);
            }
            dialog.close();
        }

        function Refresh(param) {
            if (tab != null) {
                tab.reLoad(null, param);
            }
        }

        function OpenDiaog(text, type, url, width, height) {
            dialog.open(url, type, text, width, height);
        }

        function Print() {
            //if ((navigator.userAgent.indexOf('MSIE') >= 0)
            //    && (navigator.userAgent.indexOf('Opera') < 0)) {
            //    document.frames["dlgFrame"].window.focus();
                window.print();
            //}
            //else {
            //    alert('打印功能只支持IE浏览器！请用IE 8,9,10,11进行打印!');
            //}
        }

        function OpenNewTab(tabText, tabUrl) {
            if (tab) {
                //if (!tabid) {
                var tabId = 'f' + new Date().getTime();
                //}
                tab.addTabItem({ tabid: tabId, text: tabText, url: tabUrl });
            }
        }
    </script>
</head>
<body style="padding: 0px; background: #FFFFFF; overflow: hidden;">
    <%-- <form id="form1" runat="server" enableviewstate="false">
    --%>
    <div style="margin-bottom: 4px; margin-left: 6px; margin-right: 4px; height: 70px; color: white">
        <div class="top1"><img src="/App_Themes/Images/t_bg_70.png" width="100%" height="70px" /> </div>
        <div class="top2">
            <div class="top21" style="font-family:Arial, 黑体;font-weight:normal;font-size:32px;">博世财务凭证管理系统</div>
            <div class="top22"></div>
        </div>

        <%--<div style="position: fixed; width: 100%">
            <div style="float: right; right: 10px; width: 260px; line-height: 80px; font-size: 16px; margin-right: 10px;">
                Hi <b><font size="3"><%=LoginUserInfo.CurrentUser.UserName %></font></b> <b><a class="style4" style="color: white" href="javascript:OpenDiaog('密码修改','U','/Admin/Sys_Sec/Sec004a.aspx',480,300)">密码修改</a></b>&nbsp;&nbsp;<b><a style="color: white" class="style4" href="/Admin/LoginOut.aspx">安全退出</a></b>
            </div>
            <div id="topmenu" class="l-topmenu" style="overflow: hidden;">
                <div style="width: 116px; height: 70px; position: fixed; left: 40px; top: 0px; float: left; margin-top: 0px; background-image: url('/App_Themes/Images/logo.png')">
                </div>
                <div class="l-topmenu-logo" style="height: 40px; line-height: 40px;font-weight:bold;font-size:24px;margin-top:12px;padding-left:180px ;overflow: hidden; text-align: left">
                    <%=yncSettings.AdminTitle %>
                </div>
            </div>
        </div>
        <div>
            <img src="/App_Themes/Images/t_bg_70.png" width="100%" height="70px" />
        </div>--%>
    </div>
    <div id="layout1" style="width: 100%; margin: 0 auto; margin-top: 4px;" class="l-layout">
        <div position="left" text="菜单" id="leftMenu" style="overflow-y: auto; overflow-x: hidden;" onselectstart="return false">

            <yncWeb:MainMenu ID="MainMenu1" runat="server" />
        </div>
        <div position="center" id="framecenter" class="l-layout">
            <div style="height: 300px" tabid="home" title="首页">
                <iframe frameborder="0" name="home" width="100%" id="home" src="Index.aspx" url="Index.aspx"></iframe>
            </div>
        </div>
    </div>
    <div style="height: 32px; margin-top: 4px; line-height: 32px;display:none; color: white; text-align: center; margin-left: 6px; margin-right: 4px;">

        <div>
            <img src="/App_Themes/Images/t_bg_32.png" width="100%" height="32px" />
        </div>
        <div style="position: fixed; bottom: 4px; z-index: 0; text-align: center; width: 100%">BOSCH <%=DateTime.Now.Year %></div>
    </div>
    <div id="homeloading">
    </div>
</body>
</html>
